#include "qsyncchoosedialog.h"
#include "ui_qsyncchoosedialog.h"

#include "qdevicetreewidget.h"

QSyncChooseDialog::QSyncChooseDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::QSyncChooseDialog),
    m_deviceWidget(new QDeviceTreeWidget(this))
{
    ui->setupUi(this);
    ui->verticalLayout->insertWidget(0,m_deviceWidget,1);
    connect(m_deviceWidget,SIGNAL(doubleClick()),this,SLOT(on_dataBtn_clicked()));
}

QSyncChooseDialog::~QSyncChooseDialog()
{
    delete ui;
    delete m_deviceWidget;
}

void QSyncChooseDialog::on_dataBtn_clicked()
{

}

void QSyncChooseDialog::on_clearBtn_clicked()
{
    m_deviceWidget->clearOffline();
}
